﻿<%@ Page Title="" Language="C#" MasterPageFile="~/JobMainMaster.Master" AutoEventWireup="true" CodeBehind="Applicants.aspx.cs" Inherits="HRdex_Final.WebForm3" %>
<%@ Register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 
  <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <script runat="Server" type="text/C#">
        [System.Web.Services.WebMethod]
        [System.Web.Script.Services.ScriptMethod]
        public static AjaxControlToolkit.Slide[] GetSlides()
        {
            AjaxControlToolkit.Slide[] imgSlide = new AjaxControlToolkit.Slide[4];
            
            imgSlide[0] = new AjaxControlToolkit.Slide("Images/about1.jpg", "adu1", "1");
            imgSlide[1] = new AjaxControlToolkit.Slide("Images/about2.jpg", "adu2", "2");
            imgSlide[2] = new AjaxControlToolkit.Slide("Images/about3.jpg", "adu3", "3");
            imgSlide[3] = new AjaxControlToolkit.Slide("Images/about4.jpg", "adu4", "4");
            return(imgSlide);
        }
    </script>

    <div style='float:left;'>
    <asp:Image ID="img1" runat="server" CssClass="Image" width="400px" Height="400px" ImageUrl="~/Images/about1.jpg" />
        <asp:SlideShowExtender ID="SlideShowExtender3" runat="server"
            BehaviorID="SSBehaviorID"
            TargetControlID="img1"
            SlideShowServiceMethod="GetSlides"
            AutoPlay="true"
            Loop="true" >

        </asp:SlideShowExtender>
</div> 
 
 
 
 
  <div class="box">
  <h1 style="color: #0000FF">Apply Now!</h1>
    <table>
        <tr>
            <td>
                First Name
            </td>
            <td>
                <asp:TextBox ID="txtFirstNAme" runat="server" Width="310px"></asp:TextBox>
                <asp:FilteredTextBoxExtender ID="txtFirstNAme_FilteredTextBoxExtender" 
                    runat="server" Enabled="True" FilterMode="InvalidChars" 
                    InvalidChars="1234567890" TargetControlID="txtFirstNAme">
                </asp:FilteredTextBoxExtender>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtFirstNAme" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
                <tr>
            <td>
                Last Name</td>
            <td>
                <asp:TextBox ID="txtLastName" runat="server" Width="310px"></asp:TextBox>
                <asp:FilteredTextBoxExtender ID="txtLastName_FilteredTextBoxExtender" 
                    runat="server" Enabled="True" FilterMode="InvalidChars" 
                    InvalidChars="1234567890" TargetControlID="txtLastName">
                </asp:FilteredTextBoxExtender>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtLastName" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
                <tr>
            <td>
                Address</td>
            <td>
                <asp:TextBox ID="txtAddress" runat="server" Width="310px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtAddress" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
                <tr>
            <td>
                Contact No</td>
            <td>
                <asp:TextBox ID="txtContact" runat="server" Width="310px" MaxLength="11"></asp:TextBox>
                <asp:FilteredTextBoxExtender ID="txtContact_FilteredTextBoxExtender" 
                    runat="server" Enabled="True" FilterType="Numbers" TargetControlID="txtContact" 
                    ValidChars="1234567890">
                </asp:FilteredTextBoxExtender>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtContact" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
                <tr>
            <td>
                Email Address</td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server" Width="310px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="Invalid Email" ForeColor="Red" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
                <tr>
            <td>
                Birthday</td>
            <td>
                <asp:TextBox ID="txtbday" runat="server" Width="305px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ErrorMessage="*" ForeColor="Red" ControlToValidate="txtbday"></asp:RequiredFieldValidator>
                <asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtbday">
                </asp:CalendarExtender>
            </td>
        </tr>
                <tr>
            <td>
                Apply for Position</td>
            <td>
                <asp:DropDownList ID="ddlJobTitle" runat="server" DataSourceID="Job" 
                    DataTextField="Title" DataValueField="JobID" Height="25px" Width="322px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="ddlJobTitle" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:SqlDataSource ID="Job" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT [JobID], [Title] FROM [catJobTitle]">
                </asp:SqlDataSource>
            </td>
        </tr>
                <tr>
            <td>
                Resume</td>
            <td>
                <asp:FileUpload ID="fuResume" runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ControlToValidate="fuResume" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
                <tr>
            <td colspan="2">
                <asp:Label ID="lblPubDate" runat="server"></asp:Label>
            </td>
        </tr>
                <tr>
            <td colspan="2">
                <asp:Label ID="lblConfirmation" runat="server" Font-Bold="True" Font-Italic="True" Font-Size="Medium"></asp:Label>
            </td>
        </tr>
                <tr>
            <td colspan="2">
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" 
                    onclick="btnSubmit_Click" style="width: 61px" />
            </td>
        </tr>
    </table>
 </div>
</asp:Content>
